import * as React from 'react'

type AlignType = 'left' | 'center' | 'right'

export interface ColumnType {
  align?: AlignType
  className?: string
  dataKey: string
  fixed?: boolean
  title?: React.ReactElement|string
  width?: number
  render?: (value: any, record: any, index: number) => React.ReactNode
}

export interface TableProps {
  className?: string
  style?: React.CSSProperties
  columns?: ColumnType[]
  dataSource?: any[]
  width?: number
  height?: number
}
